home *** CD-ROM | disk | FTP | other *** search
Unknown | 1995-02-21 | 2.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 3d 0e 54 68 72 65 61 | 64 20 4d 61 6e 61 67 65 |.=.Threa|d Manage|
|00000010| 72 10 0d 54 68 72 65 61 | 64 20 4d 61 6e 61 67 65 |r..Threa|d Manage|
|00000020| 72 20 17 49 6e 74 72 6f | 64 75 63 74 69 6f 6e 20 |r .Intro|duction |
|00000030| 74 6f 20 54 68 72 65 61 | 64 73 18 41 62 6f 75 74 |to Threa|ds.About|
|00000040| 20 74 68 65 20 54 68 72 | 65 61 64 20 4d 61 6e 61 | the Thr|ead Mana|
|00000050| 67 65 72 3e 46 69 67 75 | 72 65 20 31 2d 31 09 0d |ger>Figu|re 1-1..|
|00000060| 52 65 6c 61 74 69 6f 6e | 73 68 69 70 20 6f 66 20 |Relation|ship of |
|00000070| 54 68 72 65 61 64 20 4d | 61 6e 61 67 65 72 20 61 |Thread M|anager a|
|00000080| 6e 64 20 50 72 6f 63 65 | 73 73 20 4d 61 6e 61 67 |nd Proce|ss Manag|
|00000090| 65 72 0a 53 63 68 65 64 | 75 6c 69 6e 67 23 46 69 |er.Sched|uling#Fi|
|000000a0| 67 75 72 65 20 31 2d 32 | 09 0d 54 68 72 65 61 64 |gure 1-2|..Thread|
|000000b0| 20 73 63 68 65 64 75 6c | 69 6e 67 20 6d 6f 64 65 | schedul|ing mode|
|000000c0| 6c 10 54 68 65 20 4d 61 | 69 6e 20 54 68 72 65 61 |l.The Ma|in Threa|
|000000d0| 64 20 10 43 75 73 74 6f | 6d 20 53 63 68 65 64 75 |d .Custo|m Schedu|
|000000e0| 6c 65 72 43 46 69 67 75 | 72 65 20 31 2d 33 09 0d |lerCFigu|re 1-3..|
|000000f0| 54 68 72 65 61 64 20 4d | 61 6e 61 67 65 72 20 64 |Thread M|anager d|
|00000100| 65 66 61 75 6c 74 20 61 | 6e 64 20 63 75 73 74 6f |efault a|nd custo|
|00000110| 6d 20 73 63 68 65 64 75 | 6c 69 6e 67 20 6d 65 63 |m schedu|ling mec|
|00000120| 68 61 6e 69 73 6d 73 1c | 44 65 66 61 75 6c 74 20 |hanisms.|Default |
|00000130| 53 61 76 65 64 20 54 68 | 72 65 61 64 20 43 6f 6e |Saved Th|read Con|
|00000140| 74 65 78 74 37 54 61 62 | 6c 65 20 31 2d 31 09 52 |text7Tab|le 1-1.R|
|00000150| 65 67 69 73 74 65 72 73 | 20 69 6e 20 74 68 65 20 |egisters| in the |
|00000160| 36 38 30 78 30 20 64 65 | 66 61 75 6c 74 20 74 68 |680x0 de|fault th|
|00000170| 72 65 61 64 20 63 6f 6e | 74 65 78 74 39 54 61 62 |read con|text9Tab|
|00000180| 6c 65 20 31 2d 32 09 52 | 65 67 69 73 74 65 72 73 |le 1-2.R|egisters|
|00000190| 20 69 6e 20 74 68 65 20 | 50 6f 77 65 72 50 43 20 | in the |PowerPC |
|000001a0| 64 65 66 61 75 6c 74 20 | 74 68 72 65 61 64 20 63 |default |thread c|
|000001b0| 6f 6e 74 65 78 74 21 43 | 75 73 74 6f 6d 20 43 6f |ontext!C|ustom Co|
|000001c0| 6e 74 65 78 74 2d 53 77 | 69 74 63 68 69 6e 67 20 |ntext-Sw|itching |
|000001d0| 46 75 6e 63 74 69 6f 6e | 2c 46 69 67 75 72 65 20 |Function|,Figure |
|000001e0| 31 2d 34 09 43 75 73 74 | 6f 6d 20 63 6f 6e 74 65 |1-4.Cust|om conte|
|000001f0| 78 74 2d 73 77 69 74 63 | 68 69 6e 67 20 66 75 6e |xt-switc|hing fun|
|00000200| 63 74 69 6f 6e 0e 54 68 | 72 65 61 64 20 53 74 61 |ction.Th|read Sta|
|00000210| 63 6b 73 20 21 43 72 65 | 61 74 69 6e 67 20 61 6e |cks !Cre|ating an|
|00000220| 64 20 44 69 73 70 6f 73 | 69 6e 67 20 6f 66 20 54 |d Dispos|ing of T|
|00000230| 68 72 65 61 64 73 18 55 | 73 69 6e 67 20 74 68 65 |hreads.U|sing the|
|00000240| 20 54 68 72 65 61 64 20 | 4d 61 6e 61 67 65 72 2d | Thread |Manager-|
|00000250| 0d 44 65 74 65 72 6d 69 | 6e 69 6e 67 20 41 74 74 |.Determi|ning Att|
|00000260| 72 69 62 75 74 65 73 20 | 6f 66 20 74 68 65 20 54 |ributes |of the T|
|00000270| 68 72 65 61 64 20 4d 61 | 6e 61 67 65 72 20 43 72 |hread Ma|nager Cr|
|00000280| 65 61 74 69 6e 67 20 61 | 6e 64 20 41 6c 6c 6f 63 |eating a|nd Alloc|
|00000290| 61 74 69 6e 67 20 61 20 | 54 68 72 65 61 64 27 4c |ating a |Thread'L|
|000002a0| 69 73 74 69 6e 67 20 31 | 2d 31 09 0d 53 65 74 74 |isting 1|-1..Sett|
|000002b0| 69 6e 67 20 75 70 20 74 | 68 65 20 6d 61 69 6e 20 |ing up t|he main |
|000002c0| 74 68 72 65 61 64 1a 43 | 72 65 61 74 69 6e 67 20 |thread.C|reating |
|000002d0| 61 20 50 6f 6f 6c 20 6f | 66 20 54 68 72 65 61 64 |a Pool o|f Thread|
|000002e0| 73 23 4c 69 73 74 69 6e | 67 20 31 2d 32 09 0d 43 |s#Listin|g 1-2..C|
|000002f0| 72 65 61 74 69 6e 67 20 | 61 20 74 68 72 65 61 64 |reating |a thread|
|00000300| 20 70 6f 6f 6c 13 41 6c | 6c 6f 63 61 74 69 6e 67 | pool.Al|locating|
|00000310| 20 61 20 54 68 72 65 61 | 64 1e 4c 69 73 74 69 6e | a Threa|d.Listin|
|00000320| 67 20 31 2d 33 09 41 6c | 6c 6f 63 61 74 69 6e 67 |g 1-3.Al|locating|
|00000330| 20 74 68 72 65 61 64 73 | 36 4c 69 73 74 69 6e 67 | threads|6Listing|
|00000340| 20 31 2d 34 09 55 73 69 | 6e 67 20 74 68 65 20 67 | 1-4.Usi|ng the g|
|00000350| 50 68 69 6c 6f 20 73 74 | 72 75 63 74 75 72 65 20 |Philo st|ructure |
|00000360| 69 6e 20 61 20 73 75 62 | 72 6f 75 74 69 6e 65 16 |in a sub|routine.|
|00000370| 54 75 72 6e 69 6e 67 20 | 53 63 68 65 64 75 6c 69 |Turning |Scheduli|
|00000380| 6e 67 20 4f 66 66 2e 4c | 69 73 74 69 6e 67 20 31 |ng Off.L|isting 1|
|00000390| 2d 35 09 4d 61 72 6b 69 | 6e 67 20 61 20 63 72 69 |-5.Marki|ng a cri|
|000003a0| 74 69 63 61 6c 20 73 65 | 63 74 69 6f 6e 20 6f 66 |tical se|ction of|
|000003b0| 20 63 6f 64 65 13 57 6f | 72 6b 69 6e 67 20 57 69 | code.Wo|rking Wi|
|000003c0| 74 68 20 53 74 61 63 6b | 73 40 4c 69 73 74 69 6e |th Stack|s@Listin|
|000003d0| 67 20 31 2d 36 09 0d 49 | 6e 63 72 65 61 73 69 6e |g 1-6..I|ncreasin|
|000003e0| 67 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |g the si|ze of th|
|000003f0| 65 20 6d 61 69 6e 20 74 | 68 72 65 61 64 d5 73 20 |e main t|hread.s |
|00000400| 73 74 61 63 6b 20 61 72 | 65 61 41 4c 69 73 74 69 |stack ar|eaAListi|
|00000410| 6e 67 20 31 2d 37 09 44 | 65 74 65 72 6d 69 6e 69 |ng 1-7.D|etermini|
|00000420| 6e 67 20 61 6e 64 20 69 | 6e 63 72 65 61 73 69 6e |ng and i|ncreasin|
|00000430| 67 20 74 68 65 20 73 74 | 61 63 6b 20 73 69 7a 65 |g the st|ack size|
|00000440| 20 6f 66 20 61 20 74 68 | 72 65 61 64 20 43 72 65 | of a th|read Cre|
|00000450| 61 74 69 6e 67 20 44 69 | 61 6c 6f 67 20 42 6f 78 |ating Di|alog Box|
|00000460| 65 73 20 54 68 61 74 20 | 59 69 65 6c 64 2d 4c 69 |es That |Yield-Li|
|00000470| 73 74 69 6e 67 20 31 2d | 38 09 43 72 65 61 74 69 |sting 1-|8.Creati|
|00000480| 6e 67 20 61 20 64 69 61 | 6c 6f 67 20 62 6f 78 20 |ng a dia|log box |
|00000490| 74 68 61 74 20 79 69 65 | 6c 64 73 33 50 61 73 73 |that yie|lds3Pass|
|000004a0| 69 6e 67 20 49 6e 70 75 | 74 20 61 6e 64 20 4f 75 |ing Inpu|t and Ou|
|000004b0| 74 70 75 74 20 50 61 72 | 61 6d 65 74 65 72 73 20 |tput Par|ameters |
|000004c0| 74 6f 20 61 20 4e 65 77 | 20 54 68 72 65 61 64 29 |to a New| Thread)|
|000004d0| 4c 69 73 74 69 6e 67 20 | 31 2d 39 09 0d 50 61 73 |Listing |1-9..Pas|
|000004e0| 73 69 6e 67 20 64 61 74 | 61 20 62 65 74 77 65 65 |sing dat|a betwee|
|000004f0| 6e 20 74 68 72 65 61 64 | 73 16 55 73 69 6e 67 20 |n thread|s.Using |
|00000500| 54 68 72 65 61 64 73 20 | 57 69 74 68 20 49 2f 4f |Threads |With I/O|
|00000510| 5a 46 69 67 75 72 65 20 | 31 2d 35 09 0d 55 73 69 |ZFigure |1-5..Usi|
|00000520| 6e 67 20 61 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 |ng a com|pletion |
|00000530| 72 6f 75 74 69 6e 65 20 | 74 6f 20 77 61 6b 65 20 |routine |to wake |
|00000540| 75 70 20 61 20 74 68 72 | 65 61 64 20 6d 61 6b 69 |up a thr|ead maki|
|00000550| 6e 67 20 61 6e 20 61 73 | 79 6e 63 68 72 6f 6e 6f |ng an as|ynchrono|
|00000560| 75 73 20 49 2f 4f 20 63 | 61 6c 6c 40 46 69 67 75 |us I/O c|all@Figu|
|00000570| 72 65 20 31 2d 36 09 0d | 55 73 69 6e 67 20 74 77 |re 1-6..|Using tw|
|00000580| 6f 20 74 68 72 65 61 64 | 73 20 74 6f 20 68 61 6e |o thread|s to han|
|00000590| 64 6c 65 20 61 6e 20 61 | 73 79 6e 63 68 72 6f 6e |dle an a|synchron|
|000005a0| 6f 75 73 20 49 2f 4f 20 | 63 61 6c 6c 3e 4c 69 73 |ous I/O |call>Lis|
|000005b0| 74 69 6e 67 20 31 2d 31 | 30 09 0d 4d 61 6b 69 6e |ting 1-1|0..Makin|
|000005c0| 67 20 61 6e 20 61 73 79 | 6e 63 68 72 6f 6e 6f 75 |g an asy|nchronou|
|000005d0| 73 20 49 2f 4f 20 63 61 | 6c 6c 20 77 69 74 68 20 |s I/O ca|ll with |
|000005e0| 74 77 6f 20 74 68 72 65 | 61 64 73 35 0d 43 6f 6e |two thre|ads5.Con|
|000005f0| 76 65 72 74 69 6e 67 20 | 50 72 65 65 6d 70 74 69 |verting |Preempti|
|00000600| 76 65 20 54 68 72 65 61 | 64 73 20 74 6f 20 43 6f |ve Threa|ds to Co|
|00000610| 6f 70 65 72 61 74 69 76 | 65 20 54 68 72 65 61 64 |operativ|e Thread|
|00000620| 73 18 54 68 72 65 61 64 | 20 4d 61 6e 61 67 65 72 |s.Thread| Manager|
|00000630| 20 52 65 66 65 72 65 6e | 63 65 0a 44 61 74 61 20 | Referen|ce.Data |
|00000640| 54 79 70 65 73 22 47 65 | 73 74 61 6c 74 20 53 65 |Types"Ge|stalt Se|
|00000650| 6c 65 63 74 6f 72 20 61 | 6e 64 20 52 65 73 70 6f |lector a|nd Respo|
|00000660| 6e 73 65 20 42 69 74 73 | 10 54 68 65 20 54 68 72 |nse Bits|.The Thr|
|00000670| 65 61 64 20 53 74 61 74 | 65 1a 54 68 65 20 54 68 |ead Stat|e.The Th|
|00000680| 72 65 61 64 20 54 61 73 | 6b 20 52 65 66 65 72 65 |read Tas|k Refere|
|00000690| 6e 63 65 20 10 54 68 65 | 20 54 68 72 65 61 64 20 |nce .The| Thread |
|000006a0| 54 79 70 65 20 0d 54 68 | 65 20 54 68 72 65 61 64 |Type .Th|e Thread|
|000006b0| 20 49 44 0e 54 68 72 65 | 61 64 20 4f 70 74 69 6f | ID.Thre|ad Optio|
|000006c0| 6e 73 23 54 68 65 20 53 | 63 68 65 64 75 6c 65 72 |ns#The S|cheduler|
|000006d0| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 53 74 72 | Informa|tion Str|
|000006e0| 75 63 74 75 72 65 18 54 | 68 72 65 61 64 20 4d 61 |ucture.T|hread Ma|
|000006f0| 6e 61 67 65 72 20 46 75 | 6e 63 74 69 6f 6e 73 33 |nager Fu|nctions3|
|00000700| 43 72 65 61 74 69 6e 67 | 20 61 6e 64 20 47 65 74 |Creating| and Get|
|00000710| 74 69 6e 67 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |ting Inf|ormation|
|00000720| 20 41 62 6f 75 74 20 54 | 68 72 65 61 64 20 50 6f | About T|hread Po|
|00000730| 6f 6c 73 22 0d 43 72 65 | 61 74 69 6e 67 20 61 6e |ols".Cre|ating an|
|00000740| 64 20 44 69 73 70 6f 73 | 69 6e 67 20 6f 66 20 54 |d Dispos|ing of T|
|00000750| 68 72 65 61 64 73 2a 47 | 65 74 74 69 6e 67 20 49 |hreads*G|etting I|
|00000760| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 41 62 6f 75 74 |nformati|on About|
|00000770| 20 53 70 65 63 69 66 69 | 63 20 54 68 72 65 61 64 | Specifi|c Thread|
|00000780| 73 12 53 63 68 65 64 75 | 6c 69 6e 67 20 54 68 72 |s.Schedu|ling Thr|
|00000790| 65 61 64 73 15 50 72 65 | 76 65 6e 74 69 6e 67 20 |eads.Pre|venting |
|000007a0| 53 63 68 65 64 75 6c 69 | 6e 67 3c 47 65 74 74 69 |Scheduli|ng<Getti|
|000007b0| 6e 67 20 49 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |ng Infor|mation a|
|000007c0| 6e 64 20 53 63 68 65 64 | 75 6c 69 6e 67 20 54 68 |nd Sched|uling Th|
|000007d0| 72 65 61 64 73 20 44 75 | 72 69 6e 67 20 49 6e 74 |reads Du|ring Int|
|000007e0| 65 72 72 75 70 74 73 4d | 49 6e 73 74 61 6c 6c 69 |erruptsM|Installi|
|000007f0| 6e 67 20 43 75 73 74 6f | 6d 20 53 63 68 65 64 75 |ng Custo|m Schedu|
|00000800| 6c 69 6e 67 2c 20 53 77 | 69 74 63 68 69 6e 67 2c |ling, Sw|itching,|
|00000810| 20 54 65 72 6d 69 6e 61 | 74 69 6e 67 2c 20 61 6e | Termina|ting, an|
|00000820| 64 20 44 65 62 75 67 67 | 69 6e 67 20 46 75 6e 63 |d Debugg|ing Func|
|00000830| 74 69 6f 6e 73 1c 41 70 | 70 6c 69 63 61 74 69 6f |tions.Ap|plicatio|
|00000840| 6e 2d 44 65 66 69 6e 65 | 64 20 52 6f 75 74 69 6e |n-Define|d Routin|
|00000850| 65 73 1e 53 75 6d 6d 61 | 72 79 20 6f 66 20 74 68 |es.Summa|ry of th|
|00000860| 65 20 54 68 72 65 61 64 | 20 4d 61 6e 61 67 65 72 |e Thread| Manager|
|00000870| 20 09 0d 47 6c 6f 73 73 | 61 72 79 06 0d 49 6e 64 | ..Gloss|ary..Ind|
|00000880| 65 78 | |ex | |
+--------+-------------------------+-------------------------+--------+--------+